﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Owners/Owners.Master" AutoEventWireup="true" CodeBehind="ApartmanDetails.aspx.cs" Inherits="Pep_3014_3070.Owners.ApartmanDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<link href="../Content/jasny-bootstrap-3.1.0-dist/css/jasny-bootstrap.min.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="/Content/BootstrapImageGallery/css/bootstrap-image-gallery.min.css" />
	<link rel="stylesheet" href="http://blueimp.github.io/Gallery/css/blueimp-gallery.min.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<div class="main-contents" style="margin-top: 150px !important;">
		<div class="container">
			<div class="row">
				<!-- START #page -->
				<div id="page" class="col-md-12 col-lg-12 col-xs-6">
					<div class="user-profile">
						<!-- START TABS -->
						<ul class="nav nav-tabs text-upper" style="background-color: #59AEFF !important;">
							<li class="active"><a href="#basicinfo" data-toggle="tab">Osnovne inf.</a></li>
							<li><a href="#DisplayRates" data-toggle="tab">Cijene</a></li>
							<li><a href="#CapacityStay" data-toggle="tab">Kapacitet</a></li>
							<li><a href="#Addresa" data-toggle="tab">Adresa</a></li>
							<li><a href="#Pictures" data-toggle="tab">Slike</a></li>
							<li><a href="#DetailsInfo" data-toggle="tab">Detalji</a></li>
							<li><a href="#Descriptions" data-toggle="tab">Opisi</a></li>
							<li><a href="#AmenitiesNearbyActivities" data-toggle="tab">Ostalo</a></li>
						</ul>
						<!-- END TABS -->
						<!-- START TAB CONTENT -->
						<div class="tab-content clearfix marb30">
							<!-- START TAB 1 Osnovne Informacije-->
							<div class="tab-pane active mart20" id="basicinfo">
								<fieldset>
									<ul class="formFields list-unstyled">
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Naziv </label>
												<asp:TextBox ID="TitleInput" runat="server" CssClass="form-control" placeholder="Naziv apartmana"></asp:TextBox>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Vlasnik </label>
												<asp:Label ID="lblNameIznajmljivac" runat="server" Text="" CssClass="form-control"></asp:Label>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Tip </label>
												<asp:DropDownList ID="TypeDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Sobe </label>
												<asp:DropDownList ID="BedroomsDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi Broj Soba*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>
												</asp:DropDownList>
											</div>
										</li>
										<li class="row">

											<div class="col-lg-6 col-md-6">
												<label>Dolazak </label>
												<asp:TextBox ID="CheckInInput" runat="server" TextMode="Time" CssClass="form-control"></asp:TextBox>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Odlazak </label>
												<asp:TextBox ID="CheckOutInput" runat="server" TextMode="Time" CssClass="form-control"></asp:TextBox>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Kreveti </label>
												<asp:DropDownList ID="BedsDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi Broj Kreveta*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>
												</asp:DropDownList>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Vrijeme ciscenja</label>
												<asp:TextBox ID="AvgCleaningTimeInput" runat="server" TextMode="Time" CssClass="form-control"></asp:TextBox>

											</div>
										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Sprat </label>
												<asp:DropDownList ID="FloorInputDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi Sprat*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>
												</asp:DropDownList>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Lift </label>
												<asp:DropDownList ID="ElevatorDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi Postojanje Lifta*" Value="0"></asp:ListItem>
													<asp:ListItem Text="Da" Value="1"></asp:ListItem>
													<asp:ListItem Text="Ne" Value="2"></asp:ListItem>
												</asp:DropDownList>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Kupaonica </label>
												<asp:DropDownList ID="BathroomsDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi Broj Kupaonica*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>

												</asp:DropDownList>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Toilet </label>
												<asp:DropDownList ID="ToiletsDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi Broj Toilet-a*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>

												</asp:DropDownList>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-12 col-md-12">
												<hr />
											</div>
										</li>
									</ul>
								</fieldset>
							</div>
							<!-- END TAB 1 -->
							<!-- START TAB 2 Cijene -->
							<div class="tab-pane mart20" id="DisplayRates">
								<fieldset>
									<ul class="formFields list-unstyled">

										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Valuta </label>
												<asp:DropDownList ID="CurrencyDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
											</div>

											<div class="col-lg-6 col-md-6">
												<label>Cijena</label>
												<asp:TextBox ID="PriceInput" runat="server" CssClass="form-control" TextMode="Number" placeholder="Cijena apartmana"></asp:TextBox>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6 schedule">
												<label>Pocetak vazenja cijene</label>
												<input type="text" id="StartPeriodInput" runat="server" class="date-picker form-control" value="" placeholder="Pocetak perioda" data-date="11-12-2012" data-date-format="dd-mm-yyyy" />

											</div>
											<div class="col-lg-6 col-md-6 schedule">
												<label>Zavrsetak vazenja cijene</label>
												<input type="text" id="EndPeriodInput" runat="server" class="date-picker form-control" value="" placeholder="Kraj perioda" data-date="11-12-2012" data-date-format="dd-mm-yyyy" />

											</div>

										</li>
										<asp:UpdatePanel ID="DisplayRatesUpdatePanel" runat="server" UpdateMode="Always">
											<ContentTemplate>
												<li class="row">
													<div class="col-lg-12 col-md-12">
														<asp:Button ID="AddNewPeriod" runat="server" Text="Dodaj Period" OnClick="AddNewPeriod_Click" CssClass="btn btn-blue" ValidationGroup="2" />
													</div>
												</li>
												<li class="row">
													<div class="col-lg-12 col-md-12">
														<hr />
													</div>
												</li>
												<asp:Repeater ID="PeriodRepeater" runat="server" OnItemCommand="PeriodRepeater_ItemCommand">
													<ItemTemplate>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<label>Period </label>
																<asp:Label ID="lblStartEndPeriod" runat="server" Text='<%# Eval("PeriodStart", "{0:d}") +" - " + Eval("PeriodEnd", "{0:d}") %>'></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-6 col-md-6">
																<label>Valuta </label>
																<asp:Label ID="lblCurrency3" runat="server" CssClass="form-control" Text='<%# Eval("currency_code") %>'></asp:Label>
															</div>
															<div class="col-lg-6 col-md-6">
																<label>Cijena </label>
																<asp:Label ID="lblPrice3" runat="server" CssClass="form-control" Text='<%# Eval("Price","{0:F}") %>'></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-6 col-md-6">
																<label>Pocetak vazenja cijene </label>
																<asp:Label ID="lblStartPeriod3" runat="server" CssClass="form-control" Text='<%# Eval("PeriodStart","{0:d}") %>'></asp:Label>
															</div>
															<div class="col-lg-6 col-md-6">
																<label>Zavrsetak vazenja cijene<span class="required small"></span></label>
																<asp:Label ID="Label2" runat="server" CssClass="form-control" Text='<%# Eval("PeriodEnd","{0:d}") %>'></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Button ID="DeletePriceButton" runat="server" Text="Obrisi Period" CssClass="btn btn-danger" CommandName="DeletePriceButton" CommandArgument='<%# Eval("PriceID") %>' ValidationGroup="2" Width="100%" />
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<hr />
															</div>
														</li>
													</ItemTemplate>
												</asp:Repeater>

												<%--Postojeci periodi u bazi. . !--%>
												<%--TODO : Za Update : dodati mogucnost eiditovanja cijene za odredjeni period (ostaviti ocpiju obrisi period, dodati edit period) . . --%>
												<asp:Repeater ID="PostojeciPeriodiRepeater" runat="server" OnItemCommand="PostojeciPeriodiRepeater_ItemCommand">
													<ItemTemplate>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblStartEndPeriod" runat="server" Text='<%# Eval("PeriodStart", "{0:d}") +" - " + Eval("PeriodEnd", "{0:d}")%>'></asp:Label>
															</div>
														</li>
														<li class="row">

															<div class="col-lg-6 col-md-6">
																<label>Valuta</label>
																<asp:Label ID="lblCurrency3" runat="server" CssClass="form-control" Text='<%# Eval("currency_code") %>'></asp:Label>
															</div>
															<div class="col-lg-6 col-md-6">
																<label>Cijena</label>
																<asp:Label ID="lblPrice33" runat="server" CssClass="form-control" Text='<%# Eval("Price") %>'></asp:Label>
															</div>

														</li>
														<li class="row">
															<div class="col-lg-6 col-md-6">
																<label>Pocetak vazenja cijene</label>
																<asp:Label ID="lblStartPeriod3" runat="server" CssClass="form-control" Text='<%# Eval("PeriodStart", "{0:d}") %>'></asp:Label>
															</div>
															<div class="col-lg-6 col-md-6">
																<label>Zavrsetak vazenja cijene</label>
																<asp:Label ID="lblEndPeriod3" runat="server" CssClass="form-control" Text='<%# Eval("PeriodEnd", "{0:d}") %>'></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">

																<asp:Button ID="DeletePeriodButton" runat="server" Text="Obrisi Period" CssClass="btn btn-danger" Width="100%" CommandName="DeletePeriodButton" CommandArgument='<%# Eval("PriceID") %>' />
															</div>
														</li>
													</ItemTemplate>

												</asp:Repeater>

											</ContentTemplate>
										</asp:UpdatePanel>





										<%--<asp:Repeater ID="NewPeriodRepeater" runat="server">
											<ItemTemplate>
												<li class="row">
													<div class="col-lg-12 col-md-12">
														<asp:Label ID="lblStartEndPeriod" runat="server" Text='<%# Eval("PeriodStart", "{0:d}") +" - " + Eval("PeriodEnd", "{0:d}") %>'></asp:Label>
													</div>
												</li>
												<li class="row">
													<div class="col-lg-6 col-md-6">
														<label>Currency</label>
														<asp:Label ID="lblCurrency3" runat="server" CssClass="form-control" Text='<%# Eval("currency_code") %>'></asp:Label>
													</div>
													<div class="col-lg-6 col-md-6">
														<label>Price</label>
														<asp:Label ID="lblPrice" runat="server" CssClass="form-control" Text='<%# Eval("Price") %>'></asp:Label>
													</div>
												</li>
												<li class="row">

													<div class="col-lg-6 col-md-6">
														<label>Start Period</label>
														<asp:Label ID="lblStartPeriod4" runat="server" Text=""></asp:Label>
														<asp:Label ID="lblStartPeriod3" runat="server" CssClass="form-control" Text='<%# Eval("PeriodStart") %>'></asp:Label>
													</div>
													<div class="col-lg-6 col-md-6">
														<label>End Period</label>
														<asp:Label ID="lblPeriodEnd3" runat="server" CssClass="form-control" Text='<%# Eval("PeriodEnd") %>'></asp:Label>
													</div>
												</li>
											</ItemTemplate>
										</asp:Repeater>--%>
									</ul>
								</fieldset>

							</div>
							<!-- END TAB 2 -->
							<!-- START TAB 3 max Guest capacity -->
							<div class="tab-pane marb20" id="CapacityStay">
								<fieldset>
									<ul class="formFields list-unstyled">
										<li class="row"></li>

										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Maximalno gostiju </label>
												<asp:DropDownList ID="MaxGuestDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi maximalni broj osoba*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>
												</asp:DropDownList>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Maximalno odraslih osoba </label>
												<asp:DropDownList ID="MaxAdultsDropDownList1" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi maximalni broj odraslih osoba*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>

												</asp:DropDownList>
											</div>

										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Maximalno dijece </label>
												<asp:DropDownList ID="MaxChlidrenDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi maximalan broj odrasle djece*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>

												</asp:DropDownList>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Maximalno beba </label>
												<asp:DropDownList ID="MaxBabiesDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi maximalni broj beba*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>

												</asp:DropDownList>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Minimalno ostajanje gostiju  </label>
												<asp:DropDownList ID="MinStayDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi minimalan broj nocenja*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>

												</asp:DropDownList>

											</div>
											<div class="col-lg-6 col-md-6">
												<label>Maximalno ostajanje </label>
												<asp:DropDownList ID="MaxStayDropDownList" runat="server" CssClass="form-control">
													<asp:ListItem Text="*Odaberi maximalni broj nocenja*" Value="0"></asp:ListItem>
													<asp:ListItem Text="1" Value="1"></asp:ListItem>
													<asp:ListItem Text="2" Value="2"></asp:ListItem>
													<asp:ListItem Text="3" Value="3"></asp:ListItem>
													<asp:ListItem Text="4" Value="4"></asp:ListItem>
													<asp:ListItem Text="5" Value="5"></asp:ListItem>
													<asp:ListItem Text="6" Value="6"></asp:ListItem>
													<asp:ListItem Text="7" Value="7"></asp:ListItem>
													<asp:ListItem Text="8" Value="8"></asp:ListItem>
													<asp:ListItem Text="9" Value="9"></asp:ListItem>
													<asp:ListItem Text="10" Value="10"></asp:ListItem>
												</asp:DropDownList>
											</div>

										</li>
										<li class="row">
											<div class="col-lg-12 col-md-12">
												<hr />
											</div>
										</li>

									</ul>
								</fieldset>

							</div>
							<!-- END TAB 3 -->
							<!-- START TAB 4  Addresa of Apartman-->
							<div class="tab-pane marb20" id="Addresa">
								<fieldset>
									<ul class="formFields list-unstyled">
										<li class="row"></li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Broj ulice </label>
												<asp:TextBox ID="StreetNumberInput" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Broj Apartmana</label>
												<asp:TextBox ID="ApartmentNumberInput" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
										</li>

										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Adresa 1 </label>
												<asp:TextBox ID="Address1Input" runat="server" CssClass="form-control"></asp:TextBox>
											</div>

											<div class="col-lg-6 col-md-6">
												<label>Adresa 2</label>
												<asp:TextBox ID="Address2Input" runat="server" CssClass="form-control"></asp:TextBox>
											</div>

										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Grad </label>
												<asp:TextBox ID="CityInput" runat="server" CssClass="form-control"></asp:TextBox>
											</div>
											<div class="col-lg-6 col-md-6">
												<label>Zemlja </label>
												<asp:DropDownList ID="CountryDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
											</div>

										</li>

										<li class="row">
											<div class="col-lg-12 col-md-12">
												<hr />
											</div>
										</li>
									</ul>

								</fieldset>
							</div>
							<!-- END TAB 4--!>
							<!-- START TAB 5 Upload Pictures  -->
							<div class="tab-pane marb20" id="Pictures">
								<fieldset>
									<ul class="formFields list-unstyled">
										<li class="row"></li>

										<li class="row">
											<div class="col-lg-6 col-md-6" id="profilePicturesDIV" runat="server">
												<label>Profilna slika </label>
												<br />
												<div class="fileinput fileinput-new" data-provides="fileinput">
													<span class="btn btn-blue btn-file"><span class="fileinput-new">Odaberi sliku</span><span class="fileinput-exists">Promjeni</span>
														<asp:FileUpload ID="ProfilePicturesFileUpload" runat="server" AllowMultiple="True" accept="image/*" CssClass="submit-btn" /></span>
													<span class="fileinput-filename"></span>
													<a href="#" class="close fileinput-exists" data-dismiss="fileinput" style="float: none">&times;</a>
												</div>
											</div>
											</li>
										<li class="row">
											<div class="col-lg-6 col-md-6" id="profilePictDIV" runat="server" visible="false">
												<div class="fileinput fileinput-new" data-provides="fileinput">
													<asp:Image ID="ProfileImage" runat="server" CssClass="img-thumbnail img-responsive" />
												</div>
											</div>
											<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="ProfilePicturesFileUpload"
												ErrorMessage="Invalid File!(only  .gif, .jpg, .jpeg Files are supported)"
												ValidationExpression="^.+(.jpg|.JPG|.gif|.GIF|.jpeg|JPEG)$" Display="None" ValidationGroup="5"></asp:RegularExpressionValidator>
										</li>
										<li class="row">
											<div class="col-lg-6 col-md-6">
												<label>Ostale slike </label>
												<br />

												<div class="fileinput fileinput-new" data-provides="fileinput">
													<span class="btn btn-blue btn-file"><span class="fileinput-new">Odaberi slike</span><span class="fileinput-exists">Promjeni</span>
														<asp:FileUpload ID="fuProfiePictures" runat="server" AllowMultiple="True" accept="image/*" />
													</span>
													<span class="fileinput-filename"></span>
													<a href="#" class="close fileinput-exists" data-dismiss="fileinput" style="float: none">&times;</a>
												</div>
											</div>
											<asp:RegularExpressionValidator ID="RevImg" runat="server" ControlToValidate="fuProfiePictures"
												ErrorMessage="Invalid File!(only  .gif, .jpg, .jpeg Files are supported)"
												ValidationExpression="^.+(.jpg|.JPG|.gif|.GIF|.jpeg|JPEG)$" Display="None" ValidationGroup="5"></asp:RegularExpressionValidator>
										</li>

										<asp:UpdatePanel ID="PicturesUpdatePanel" runat="server">
											<ContentTemplate>
												<li class="row">
													<div class="col-lg-12 col-md-12">
														<div class="submit-btn col-md-2">
															<asp:Button ID="UploadImagesButton" runat="server" Text="Upload Images" OnClick="UploadImagesButton_Click" />
														</div>
													</div>
												</li>
												<li class="row">
													<div class="col-lg-12">
														<hr />
													</div>
												</li>
												<asp:Repeater ID="ImagesRepeater" runat="server" OnItemCommand="ImagesRepeater_ItemCommand">
													<ItemTemplate>
														<div class="col-lg-2 col-md-2">
															<div id="links">
																<a href='<%# Eval("Url") %>' title="" data-gallery>
																	<img src='<%# Eval("UrlThumbnail") %>' class="img-thumbnail img-responsive" alt="Responsive image">
																</a>
																<asp:Button ID="DeletePictures1Button" runat="server" Text="Obrisi" CssClass="btn btn-danger" CommandName="DeletePictures1Button" CommandArgument='<%# Eval("PictureID") %>' Width="100%" />
															</div>
														</div>
													</ItemTemplate>
												</asp:Repeater>
												<asp:Repeater ID="Images2Repeater" runat="server" OnItemCommand="Images2Repeater_ItemCommand">
													<ItemTemplate>
														<div class="col-lg-2 col-md-2">
															<div id="links">
																<a href='<%# Eval("Url") %>' title="" data-gallery>
																	<img src='<%# Eval("UrlThumbnail") %>' class="img-thumbnail img-responsive" alt="Responsive image">
																</a>
																<asp:Button ID="DeletePicturesButton" runat="server" Text="Obrisi" CssClass="btn btn-danger" CommandName="DeletePicturesButton" CommandArgument='<%# Eval("PictureID") %>' Width="100%" />
															
															</div>
														</div>
													</ItemTemplate>
												</asp:Repeater>
											</ContentTemplate>
											<Triggers>
												<asp:PostBackTrigger ControlID="UploadImagesButton" />
											</Triggers>
										</asp:UpdatePanel>
									</ul>
								</fieldset>
							</div>
							<!-- END TAB 5 -->
							<!-- START  TAB 6 Ostale informacije o apartmanu-->
							<div class="tab-pane marb20" id="DetailsInfo">
								<fieldset>
									<ul class="formFields list-unstyled">
										<li class="row"></li>
										<li class="row">
											<div class="col-lg-12 col-md-12">
												<label>Detalji iznajmljivanja </label>
												<asp:TextBox ID="RentalDetailsInput" runat="server" CssClass="form-control" TextMode="MultiLine" Rows="5"></asp:TextBox>
											</div>
										</li>
										<li class="row">

											<div class="col-lg-12 col-md-12">
												<label>Detalji Inventara</label>
												<asp:TextBox ID="InventoryInput" runat="server" CssClass="form-control" TextMode="MultiLine" Rows="5"></asp:TextBox>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-12 col-md-12">
												<label>Lista dolazaka </label>
												<asp:TextBox ID="ArrivalSheetInput" runat="server" CssClass="form-control" TextMode="MultiLine" Rows="5"></asp:TextBox>
											</div>
										</li>

										<li class="row">
											<div class="col-lg-12 col-md-12">
												<hr />
											</div>
										</li>
									</ul>
								</fieldset>
							</div>
							<!--END TAB 6-->
							<!-- START TAB 7 Opisi koje mogu dodati vlasnici na razlicitim jeziciima-->
							<div class="tab-pane marb20" id="Descriptions">
								<fieldset>
									<ul class="formFields list-unstyled">
										<li class="row"></li>
										<li class="row">
											<div class="col-lg-12 col-md-12">
												<label>Odaberi jezik<span class="required small">(Obavezno)</span></label>
												<asp:DropDownList ID="DescriptionLanguageDropDownList" runat="server" CssClass="form-control"></asp:DropDownList>
												<br />
											</div>
										</li>
										<asp:UpdatePanel ID="DescriptionUpdatePanel" runat="server">
											<ContentTemplate>
												<li class="row">
													<div class="col-lg-12 col-md-12">
														<asp:Button ID="AddLanguageBtn" runat="server" Text="Add new description language" CssClass="btn btn-blue" OnClick="AddLanguageBtn_Click" />
													</div>
												</li>
												<div id="divID" runat="server" visible="false">
													<hr />
													<li class="row">
														<div class="col-lg-12 col-md-12">
															<label id="lblAreaDescription" runat="server">Kratki opis </label>
															<asp:TextBox ID="ShortPropertyDescriptionInput" runat="server" CssClass="form-control" TextMode="MultiLine" Rows="5"></asp:TextBox>

														</div>
													</li>
													<li class="row">
														<div class="col-lg-12 col-md-12">
															<label id="lblShortPropertyDescription" runat="server">Opis područja</label>
															<asp:TextBox ID="AreaDescriptionInput" runat="server" CssClass="form-control" TextMode="MultiLine" Rows="5"></asp:TextBox>
														</div>
													</li>
													<li class="row">
														<div class="col-lg-12 col-md-12">
															<label id="lblFullPropertyDescription" runat="server">Puni opis </label>
															<asp:TextBox ID="FullPropertyDescriptionInput" runat="server" CssClass="form-control" TextMode="MultiLine" Rows="5"></asp:TextBox>

														</div>
													</li>
													<li class="row">
														<div class="col-lg-12 col-md-12">
															<asp:Button ID="SaveButton" runat="server" Text="Spremi" CssClass="btn btn-blue" OnClick="SaveButton_Click" />
														</div>
													</li>


												</div>
												<li class="row">
													<div id="divID2" visible="false" runat="server">
														<div class="col-lg-12 col-md-12">
															<asp:Label ID="lblPostojeci" runat="server" Text="Uspjesno sacuvani opisi na jezicima :"></asp:Label>
														</div>
													</div>

												</li>

												<asp:Repeater ID="DescriptionRepeater" runat="server" OnItemCommand="DescriptionRepeater_ItemCommand">
													<ItemTemplate>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblLanguageDesc" runat="server" Text='<%# Eval("Language") %>'></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblShortPropertyDescription2" runat="server" Text='<%# "Kratki opis - "+Eval("Language") %>'></asp:Label>
																<asp:Label ID="ShortPropertyDescriptionInput2" runat="server" Height="100px" Text='<%# Eval("ShortPropertyDescription") %>' CssClass="form-control"></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblAreadescription2" runat="server" Text='<%# "Opis podrucja - " + Eval("Language") %>'></asp:Label>
																<asp:Label ID="Areadescription2" runat="server" Height="100px" Text='<%# Eval("AreaDescription") %>' CssClass="form-control"></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblFullPropertyDescription3" runat="server" Text='<%# "Puni opis - "+ Eval("Language") %>'></asp:Label>
																<asp:Label ID="FullPropertyDescription3" runat="server" Height="100px" Text='<%# Eval("FullPropertyDescription") %>' CssClass="form-control"></asp:Label>
															</div>
														</li>

														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Button ID="DeleteDescriptionButton" runat="server" Text="Obrisi Opis" CssClass="btn btn-danger" CommandName="DeleteDescriptionButton" CommandArgument='<%# Eval("DescriptionID") %>' />
															</div>
														</li>
													</ItemTemplate>
												</asp:Repeater>

												<%--TODO : Mogucnost editovanja pojedinog opisa, te spremanje ( ostaviti opciju obrisi opis , dodati edit opis )--%>
												<li class="row">
													<div class="col-lg-12 col-md-12">
														<asp:Label ID="lblPostojeciOpisi" runat="server" Text=""></asp:Label>
													</div>
												</li>
												<asp:Repeater ID="PostojeciOpisiRepeater" runat="server" OnItemCommand="PostojeciOpisiRepeater_ItemCommand">
													<ItemTemplate>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblLanguageDesc" runat="server" Text='<%# Eval("Language") %>'></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblShortPropertyDescription2" runat="server" Text='<%# "Short property description - "+Eval("Language") %>'></asp:Label>
																<asp:Label ID="ShortPropertyDescriptionInput2" runat="server" Height="100px" Text='<%# Eval("ShortPropertyDescription") %>' CssClass="form-control"></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblAreadescription2" runat="server" Text='<%# "Area property description - " + Eval("Language") %>'></asp:Label>
																<asp:Label ID="Areadescription2" runat="server" Height="100px" Text='<%# Eval("AreaDescription") %>' CssClass="form-control"></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Label ID="lblFullPropertyDescription3" runat="server" Text='<%# "Full property description - "+ Eval("Language") %>'></asp:Label>
																<asp:Label ID="FullPropertyDescription3" runat="server" Height="100px" Text='<%# Eval("FullPropertyDescription") %>' CssClass="form-control"></asp:Label>
															</div>
														</li>
														<li class="row">
															<div class="col-lg-12 col-md-12">
																<asp:Button ID="Delete2DescriptionButton" runat="server" Text="Obrisi Opis" CssClass="btn btn-danger" Width="100%" CommandName="Delete2DescriptionButton" CommandArgument='<%# Eval("DescriptionID") %>' />
															</div>
														</li>
													</ItemTemplate>
												</asp:Repeater>

											</ContentTemplate>
										</asp:UpdatePanel>



										<li class="row">
											<div class="col-lg-12 col-md-12">
												<hr />
											</div>
										</li>
									</ul>
								</fieldset>
							</div>
							<!--END TAB 7 -->
							<!-- START TAB 8 DODACI-->
							<div class="tab-pane marb20" id="AmenitiesNearbyActivities">
								<fieldset>
									<ul class="formFields list-unstyled">
										<li class="row"></li>

										<li class="row">

											<div class="col-lg-6 col-md-6">
												<label class="box-shadow1">Amenities</label>
												<asp:CheckBoxList ID="AmenitiesCheckBoxList" runat="server"></asp:CheckBoxList>
											</div>

											<div class="col-lg-6 col-md-6">
												<label class="box-shadow1">Nearby activities</label>
												<asp:CheckBoxList ID="NearByActivitiesCheckBoxList" runat="server"></asp:CheckBoxList>
											</div>
										</li>
										<li class="row">
											<div class="col-lg-12 col-md-12">
												<hr />
											</div>
										</li>
									</ul>
								</fieldset>

							</div>
							<!--END TAB 8-->
						</div>
						<!-- END TAB CONTENT -->
					</div>
				</div>
				<!-- END #page -->
				<div class="submit-btn col-md-2">
					<asp:Button ID="UpdateApartman" runat="server" Text="Spremi promjene" OnClick="UpdateApartman_Click" />
				</div>
			</div>
		</div>
	</div>
	<!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->
	<div id="blueimp-gallery" class="blueimp-gallery">
		<!-- The container for the modal slides -->
		<div class="slides"></div>
		<!-- Controls for the borderless lightbox -->
		<h3 class="title"></h3>
		<a class="prev">‹		<a class="next">›</a>
			<a class="close">×</a>
			<a class="play-pause"></a>
			<ol class="indicator"></ol>
			<!-- The modal dialog, which will be used to wrap the lightbox content -->
			<div class="modal fade">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" aria-hidden="true">&times;</button>
							<h4 class="modal-title"></h4>
						</div>
						<div class="modal-body next"></div>
						<div class="modal-footer">
							<button type="button" class="btn btn-blue pull-left prev">
								<i class="glyphicon glyphicon-chevron-left"></i>
								Previous
							</button>
							<button type="button" class="btn btn-primary  next">
								Next
						<i class="glyphicon glyphicon-chevron-right"></i>
							</button>
						</div>
					</div>
				</div>
			</div>
	</div>
	<script src="../Content/jasny-bootstrap-3.1.0-dist/js/jasny-bootstrap.min.js" type="text/javascript"></script>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
	<script src="http://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js" type="text/javascript"></script>
	<script src="/Content/BootstrapImageGallery/js/bootstrap-image-gallery.min.js" type="text/javascript"></script>


</asp:Content>
